package com.aiit.service;

import com.aiit.dto.BookingDTO;
import com.aiit.dto.UserBookingDTO;
import com.aiit.entity.Booking;
import com.aiit.vo.BookingVO;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface BookingService {
    BookingVO select(String date);

    void update(BookingDTO bookingDTO);

    List<Booking> list(Booking booking);

    int updateBookingsWithOldSessionTime();

    void savebookings(UserBookingDTO userBookingDTO);

    int updateUserBookingWithOldSessionTime();

    int updateUserBookingStatus();

    Page<UserBookingDTO> userBooking(UserBookingDTO userBookingDTO);
}
